//
// Created by sysrain on 2023/11/10.
//

#include "utils.h"
#include <iostream>
#include <vector>
#include <fstream>

using namespace std;

struct Point {
    int x;
    int y;
};


// 将这些点保存到文件中
void savePointsToFile(const vector<Point>& points, const string& filename) {
    ofstream file(filename);
    if (!file.is_open()) {
        cerr << "File open error" << endl;
        return;
    }

    for (const Point& point : points) {
        file << point.x << " " << point.y << endl;
    }

    file.close();
}
// 打印点的坐标
void printPoint(const Point& point) {
    cout << "(" << point.x << ", " << point.y << ")" << endl;
}